package com.itheima.d12_extends_override;

public class Student {
    private String name;
    private int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String toString(){
        return "Student {\n" +
                "name: "+name+"\n" +
                "age: "+age+"\n" +
                "}";
    }

}
